package org.penguin.study.bk.user.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.penguin.study.bk.user.dao.UserMapper;
import org.penguin.study.bk.user.entity.User;
import org.penguin.study.bk.user.service.UserService;
import org.springframework.stereotype.Service;

/**
 * @author chengyinghua
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

    @Override
    public User selectUserAndOrganizationUsingResultTypeByUserId(String userId) {
        return baseMapper.selectUserAndOrganizationUsingResultTypeByUserId(userId);
    }

    @Override
    public User selectUserAndOrganizationUsingResultMapByUserId(String userId) {
        return baseMapper.selectUserAndOrganizationUsingResultMapByUserId(userId);
    }

    @Override
    public int createUser(User user) {
        return baseMapper.createUser(user);
    }
}
